package Zuoye;

public class Ex2_1 {
    public enum week{
        sun,mon,Tue,wed,Thu,Fri,Sat;
    }
    public static void main(String[] args) {
        week day1=week.mon;
        week day2=week.Thu;
        int diff = day2.ordinal()- day1.ordinal();
        System.out.println("day1 = " + day1.ordinal());
        System.out.println("day2 = " + day2.ordinal());
        System.out.println("diff = " + diff);
    }
}
